﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OQualityStrategyView.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OQualityStrategyView" %>

<div class="pageContent">
    <form method="post" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
        <div class="tabs" currentindex="0" eventtype="click">
            <div class="tabsHeader">
                <div class="tabsHeaderContent">
                    <ul>
                        <li><a href="javascript:;"><span>品质基本信息</span></a></li>
                        <li><a href="javascript:;"><span>临时对策信息</span></a></li>
                        <li><a href="javascript:;"><span>永久对策信息</span></a></li>
                    </ul>
                </div>
            </div>
            <div class="tabsContent">
                <div class="pageFormContent" layouth="95">
                    <p>
                        <label>问题归类：</label>
                        <input type="text" readonly value="<%=OQualityStrategyObj.ProblemClass %>" />
                    </p>
                    <p>
                        <label>对策编号：</label>
                        <input type="text" readonly class="" value="<%=OQualityStrategyObj.DuiCuBianHao %>" />
                    </p>
                    <div class="divider"></div>
                    <p>
                        <label>问题点单号：</label>
                        <input type="text" readonly value="<%=OQualityStrategyObj.RelevantEntryNum %>" />
                    </p>
                    <div class="divider"></div>

                    <dl class="nowrap">
                        <dt>机型：</dt>
                        <dd>
                            <%=OQualityStrategyObj.MacType %>
                        </dd>
                    </dl>
                    <div class="divider"></div>
                    <p>
                        <label>零件号：</label>
                        <input name="ItemCode" type="text" readonly value="<%=OQualityStrategyObj.ItemCode %>" />
                    </p>
                    <p>
                        <label>零件名：</label>
                        <input name="ItemName" type="text" readonly value="<%=OQualityStrategyObj.ItemName %>" />
                    </p>
                    <div class="divider"></div>
                    <p>
                        <label>发生数量：</label>
                        <input name="Frequency" type="text" readonly value="<%=OQualityStrategyObj.Frequency %>" />
                    </p>
                    <p>
                        <label>是否再发：</label>
                        <input name="Tiems" type="text" readonly value="<%=OQualityStrategyObj.Tiems %>" />
                    </p>
                    <div class="divider"></div>
                    <p>
                        <label>有无对策报告：</label>
                        <%=OQualityStrategyObj.DuiceReport %>
                    </p>
                    <dl id="OQualityStrategyAddDuiceReportUpload" style="width: 100%; height: 60px;">
                        <dt>&nbsp;</dt>
                        <dd>对策报告附件
					<table border="0" cellpadding="2" style="border-spacing: 2px!important; width: 400px;">
                        <tr>
                            <asp:repeater id="rpDuiceReportAtt" runat="server">
                            <ItemTemplate>

                            <td>
                                <input name="Remark" type="text" value="<%# Eval("Remark") %>" /></td>
                            <td width="100px">
                                <a target="_blank" class="downloadhref" href="<%# Eval("AttPath") %>">下载</a>
                            </td>
                        </tr>
                        </ItemTemplate>
                     </asp:repeater>   
                    </table>
                        </dd>
                    </dl>

                    <div class="divider"></div>
                    <dl style="width: 100%; height: 60px;">
                        <dt>故障描述：</dt>
                        <dd>
                            <textarea name="FaultDescription" readonly cols="80" rows="4"><%=OQualityStrategyObj.FaultDescription %></textarea>
                        </dd>
                    </dl>
                    <dl style="width: 100%; height: 150px;">
                        <dt>&nbsp;</dt>
                        <dd>故障描述说明附件
                    <table border="0" cellpadding="2" style="border-spacing: 5px!important; width: 400px;">
                        <asp:repeater id="rpfaultdescription" runat="server">
                            <ItemTemplate>                        
                                <tr>
                                    <td><%# Container.ItemIndex + 1%>：</td>
                                   
                                    <td><input name="Remark" type="text"   value="<%# Eval("Remark") %>" /></td> 
                                      <td width="100px">
                                        <a target="_blank" class="downloadhref" href="<%# Eval("AttPath") %>">下载</a>
                                    </td>                            
                                </tr>
                         </ItemTemplate>
                        </asp:repeater>
                    </table>

                        </dd>
                    </dl>
                    <div class="divider"></div>
                    <dl style="width: 100%; height: 60px;">
                        <dt>原因分析：</dt>
                        <dd>
                            <textarea name="CauseAnalysis" readonly cols="80" rows="4"><%=OQualityStrategyObj.CauseAnalysis %></textarea>
                        </dd>
                    </dl>
                    <dl style="width: 100%; height: 110px;">
                        <dt>&nbsp;</dt>
                        <dd>原因分析说明附件
                    <table border="0" cellpadding="2" style="border-spacing: 10px!important; width: 400px;">
                        <asp:repeater id="rpcauseanalysis" runat="server">
                            <ItemTemplate>                         
                                <tr>
                                     <td><%# Container.ItemIndex + 1%>：</td>
                                   
                                    <td><input name="Remark"  type="text"   value="<%# Eval("Remark") %>" /></td>
                                    <td width="100px">
                                        <a target="_blank" class="downloadhref" href="<%# Eval("AttPath") %>">下载</a>
                                    </td>                             
                                </tr>
                              </ItemTemplate>
                        </asp:repeater>
                    </table>

                        </dd>
                    </dl>


                </div>
                <%--临时对策--%>
                <div class="pageFormContent" layouth="95">
                    <p>
                        <label>需处理零/部件编号：</label>
                        <input type="text" value="<%=OQualityStrategyObj.LDC_HandleItemCode%>" />
                    </p>
                    <p>
                        <label>需处理零/部件名称：</label>
                        <input  type="text" value="<%=OQualityStrategyObj.LDC_HandleItemName%>" />
                    </p>
                    <div class="divider"></div>
                    <dl style="width: 100%; height: 60px;">
                        <dt>对策方案：</dt>
                        <dd>
                            <textarea cols="80" rows="4"><%=OQualityStrategyObj.LDC_Scheme%></textarea>
                        </dd>
                    </dl>

                    <dl style="width: 100%; height: 150px;">
                        <dt>&nbsp;</dt>
                        <dd>对策方案说明附件
                    <table border="0" cellpadding="2" style="border-spacing: 5px!important; width: 400px;">
                        <asp:repeater id="rpLDCSchemeAtt" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Container.ItemIndex + 1%>：</td>
                                    <td><input name="Remark" type="text"   value="<%# Eval("Remark") %>" /></td>      
                                    <td width="100px">
                                        <a target="_blank" class="downloadhref" href="<%# Eval("AttPath") %>">下载</a>
                                    </td>                      
                                </tr>
                            </ItemTemplate>
                        </asp:repeater>                       
                    </table>
                        </dd>
                    </dl>

                    <div class="divider"></div>
                    <p>
                        <label>是否导入：</label>
                        <select  selectvalue="<%=OQualityStrategyObj.LDC_IsExport%>">
                            <option value="是" >是</option>
                            <option value="否" >否</option>
                        </select>
                    </p>
                    <p>
                        <label>管制日期：</label>
                        <input  type="text" class="" value="<%=OQualityStrategyObj.LDC_ControlDate%>" />
                    </p>
                    <p>
                        <label>管制钢号：</label>
                        <input type="text" class="" value="<%=OQualityStrategyObj.LDC_ControlSteel%>" />
                    </p>
                    <p>
                        <label>管制其他：</label>
                        <input  type="text" class="" value="<%=OQualityStrategyObj.LDC_ControlOther%>" />
                    </p>
                    <div class="divider"></div>
                    <p>
                        <label>是否要发服务通报：</label>
                        <%=OQualityStrategyObj.LDC_SendSvrBulletin%>
                       
                    </p>
                    <dl id="OQualityStrategyDuiCeEdit_LDC_SendSvrBulletinUpload" style="width: 100%; height: 60px;">
                        <dt>&nbsp;</dt>
                        <dd>服务通报附件
					<table border="0" cellpadding="2" style="border-spacing: 2px!important; width: 400px;">
                        <asp:repeater id="rpLDCSendsvrBulletin" runat="server">
                            <ItemTemplate>          
                                <tr>                            
                                   
                                    <td><input name="Remark"  type="text"   value="<%# Eval("Remark") %>" /></td>  
                                    <td width="100px">
                                        <a target="_blank" class="downloadhref" href="<%# Eval("AttPath") %>">下载</a>
                                    </td>                           
                                </tr>                           
                         </ItemTemplate>
                        </asp:repeater>
                    </table>
                        </dd>
                    </dl>

                    <div class="divider"></div>
                    <h2 style="padding: 0px 0px 5px 6px; border-bottom: 1px solid #B8D0D6; width: 100%; display: block; line-height: 25px;">零部件处理管制表
              
                    </h2>

                    <table class="list" style="width: 100%">
                        <thead>
                            <tr>
                                <th>零/部件钢号</th>
                                <th>相关联零件部件1钢号</th>
                                <th>相关联零件部件2钢号</th>
                                <th>相关联零件部件3钢号</th>
                                <th>零/部件存储位置</th>
                                <th>处理进度</th>
                                <th>处理时间</th>
                                <th>备注</th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:repeater id="rpLDCPartList" runat="server">
                               <ItemTemplate>  
                                     <tr>
                                        <td>
                                            <input type="text" name="PartSerNum" value="<%# Eval("PartSerNum") %>" /> 
                                        </td>
                                        <td><input type="text" name="RelevantSteel1" value="<%# Eval("RelevantSteel1") %>" /> </td>
                                        <td><input type="text" name="RelevantSteel2" value="<%# Eval("RelevantSteel2") %>" /> </td>
                                        <td><input type="text" name="RelevantSteel3" value="<%# Eval("RelevantSteel3") %>" /> </td>
                                        <td>
                                            <%# Eval("StorageLocation") %>
                                        </td>
                                        <td> 
                                            <%# Eval("IsProgress") %>
                                        </td>
                                        <td><input type="text" name="ProgressDate" class="date" value="<%# Eval("ProgressDate") %>" /> </td>
                                        <td><input type="text" name="detailRemark" value="<%# Eval("Remark") %>" /> </td>
                                    </tr>
                               </ItemTemplate>
                            </asp:repeater>                            
                        </tbody>
                        <tfoot>
                    </table>
                    <h2 style="padding: 0px 2px; width: 100%; display: block; line-height: 18px;">统计</h2>
                    <table class="list" style="width: 100%">
                        <thead>
                            <tr>
                                <th>存储位置</th>
                                <th>数量</th>
                                <th>处理完成数量</th>
                                <th>最后处理时间</th>
                            </tr>
                        </thead>
                        <asp:repeater id="rpLDCPartTJ" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Eval("存储位置") %></td>
                                    <td><%# Eval("数量") %></td>
                                    <td><%# Eval("处理完成数量") %></td>
                                    <td><%# Eval("最后处理时间") %></td>
                                </tr>
                            </ItemTemplate> 
                        </asp:repeater> 
                    </table>
                    <div class="divider"></div>
                    <h2 style="padding: 0px 0px 5px 6px; border-bottom: 1px solid #B8D0D6; width: 100%; display: block; line-height: 25px;">机器处理管制表</h2>
                    <table id="" class="list" style="width: 100%">
                        <thead>
                            <tr>
                                <th>机号</th>
                                <th>相关联零件部件1钢号</th>
                                <th>相关联零件部件2钢号</th>
                                <th>相关联零件部件3钢号</th>
                                <th>机器位置</th>
                                <th>处理进度</th>
                                <th>处理时间</th>
                                <th>备注</th>
                                <th width="80px"></th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:repeater id="rpLDCSerList" runat="server">
                               <ItemTemplate>  
                                     <tr>
                                        <td>
                                            <input type="hidden" name="QSClass" value="m" />
                                            <input type="text" name="PartSerNum" value="<%# Eval("PartSerNum") %>" /> 
                                        </td>
                                        <td><input type="text" name="RelevantSteel1" value="<%# Eval("RelevantSteel1") %>" /> </td>
                                        <td><input type="text" name="RelevantSteel2" value="<%# Eval("RelevantSteel2") %>" /> </td>
                                        <td><input type="text" name="RelevantSteel3" value="<%# Eval("RelevantSteel3") %>" /> </td>
                                        <td>
                                            <%# Eval("StorageLocation") %>
                                        </td>
                                        <td> 
                                             <%# Eval("IsProgress") %>
                                        </td>
                                        <td><input type="text" name="ProgressDate" class="date" value="<%# Eval("ProgressDate") %>" /> </td>
                                        <td><input type="text" name="detailRemark" value="<%# Eval("Remark") %>" /> </td>
                                    </tr>
                               </ItemTemplate>
                            </asp:repeater>                          
                        </tbody>                        
                    </table>
                    <h2 style="padding: 0px 2px; width: 100%; display: block; line-height: 18px;">统计</h2>
                    <table class="list" style="width: 100%">
                        <thead>
                            <tr>
                                <th>存储位置</th>
                                <th>数量</th>
                                <th>处理完成数量</th>
                                <th>最后处理时间</th>
                            </tr>
                        </thead>
                        <asp:repeater id="rpLDCSerTJ" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Eval("存储位置") %></td>
                                    <td><%# Eval("数量") %></td>
                                    <td><%# Eval("处理完成数量") %></td>
                                    <td><%# Eval("最后处理时间") %></td>
                                </tr>
                            </ItemTemplate> 
                        </asp:repeater> 
                    </table>
                </div>
                <div class="pageFormContent" layouth="95">
                    <p>
                        <label>需处理零/部件编号：</label>
                        <input type="text" value="<%=OQualityStrategyObj.YDC_HandleItemCode%>" />
                    </p>
                    <p>
                        <label>需处理零/部件名称：</label>
                        <input  type="text" value="<%=OQualityStrategyObj.YDC_HandleItemName%>" />
                    </p>
                    <div class="divider"></div>
                    <dl style="width: 100%; height: 60px;">
                        <dt>对策方案：</dt>
                        <dd>
                            <textarea cols="80" rows="4"><%=OQualityStrategyObj.YDC_Scheme%></textarea>
                        </dd>
                    </dl>

                    <dl style="width: 100%; height: 150px;">
                        <dt>&nbsp;</dt>
                        <dd>对策方案说明附件
                    <table border="0" cellpadding="2" style="border-spacing: 5px!important; width: 400px;">
                        <asp:repeater id="rpYDCSchemeAtt" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Container.ItemIndex + 1%>：</td>
                                    <td><input name="Remark" type="text"   value="<%# Eval("Remark") %>" /></td>      
                                    <td width="100px">
                                        <a target="_blank" class="downloadhref" href="<%# Eval("AttPath") %>">下载</a>
                                    </td>                      
                                </tr>
                            </ItemTemplate>
                        </asp:repeater>                       
                    </table>
                        </dd>
                    </dl>

                    <div class="divider"></div>
                    <p>
                        <label>是否导入：</label>
                        <select  selectvalue="<%=OQualityStrategyObj.YDC_IsExport%>">
                            <option value="是" >是</option>
                            <option value="否" >否</option>
                        </select>
                    </p>
                    <p>
                        <label>管制日期：</label>
                        <input  type="text" class="" value="<%=OQualityStrategyObj.YDC_ControlDate%>" />
                    </p>
                    <p>
                        <label>管制钢号：</label>
                        <input type="text" class="" value="<%=OQualityStrategyObj.YDC_ControlSteel%>" />
                    </p>
                    <p>
                        <label>管制其他：</label>
                        <input  type="text" class="" value="<%=OQualityStrategyObj.YDC_ControlOther%>" />
                    </p>
                    <div class="divider"></div>
                    <p>
                        <label>是否要发服务通报：</label>
                        <%=OQualityStrategyObj.YDC_SendSvrBulletin%>
                       
                    </p>
                    <dl id="OQualityStrategyDuiCeEdit_YDC_SendSvrBulletinUpload" style="width: 100%; height: 60px;">
                        <dt>&nbsp;</dt>
                        <dd>服务通报附件
					<table border="0" cellpadding="2" style="border-spacing: 2px!important; width: 400px;">
                        <asp:repeater id="rpYDCSendsvrBulletin" runat="server">
                            <ItemTemplate>          
                                <tr>                            
                                   
                                    <td><input name="Remark"  type="text"   value="<%# Eval("Remark") %>" /></td>  
                                    <td width="100px">
                                        <a target="_blank" class="downloadhref" href="<%# Eval("AttPath") %>">下载</a>
                                    </td>                           
                                </tr>                           
                         </ItemTemplate>
                        </asp:repeater>
                    </table>
                        </dd>
                    </dl>

                    <div class="divider"></div>
                    <h2 style="padding: 0px 0px 5px 6px; border-bottom: 1px solid #B8D0D6; width: 100%; display: block; line-height: 25px;">零部件处理管制表
              
                    </h2>

                    <table class="list" style="width: 100%">
                        <thead>
                            <tr>
                                <th>零/部件钢号</th>
                                <th>相关联零件部件1钢号</th>
                                <th>相关联零件部件2钢号</th>
                                <th>相关联零件部件3钢号</th>
                                <th>零/部件存储位置</th>
                                <th>处理进度</th>
                                <th>处理时间</th>
                                <th>备注</th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:repeater id="rpYDCPartList" runat="server">
                                   <ItemTemplate>  
                                         <tr>
                                            <td>
                                                <input type="text" name="PartSerNum" value="<%# Eval("PartSerNum") %>" /> 
                                            </td>
                                            <td><input type="text" name="RelevantSteel1" value="<%# Eval("RelevantSteel1") %>" /> </td>
                                            <td><input type="text" name="RelevantSteel2" value="<%# Eval("RelevantSteel2") %>" /> </td>
                                            <td><input type="text" name="RelevantSteel3" value="<%# Eval("RelevantSteel3") %>" /> </td>
                                            <td>
                                                <%# Eval("StorageLocation") %>
                                            </td>
                                            <td> 
                                                <%# Eval("IsProgress") %>
                                            </td>
                                            <td><input type="text" name="ProgressDate" class="date" value="<%# Eval("ProgressDate") %>" /> </td>
                                            <td><input type="text" name="detailRemark" value="<%# Eval("Remark") %>" /> </td>
                                        </tr>
                                   </ItemTemplate>
                            </asp:repeater>
                            
                        </tbody>                       
                    </table>
                    <h2 style="padding: 0px 2px; width: 100%; display: block; line-height: 18px;">统计</h2>
                    <table class="list" style="width: 100%">
                        <thead>
                            <tr>
                                <th>存储位置</th>
                                <th>数量</th>
                                <th>处理完成数量</th>
                                <th>最后处理时间</th>
                            </tr>
                        </thead>
                        <asp:repeater id="rpYDCPartTJ" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Eval("存储位置") %></td>
                                    <td><%# Eval("数量") %></td>
                                    <td><%# Eval("处理完成数量") %></td>
                                    <td><%# Eval("最后处理时间") %></td>
                                </tr>
                            </ItemTemplate> 
                        </asp:repeater> 
                    </table>
                    <div class="divider"></div>

                    <h2 style="padding: 0px 0px 5px 6px; border-bottom: 1px solid #B8D0D6; width: 100%; display: block; line-height: 25px;">机器处理管制表
                    </h2>
                    <table id="" class="list" style="width: 100%">
                        <thead>
                            <tr>
                                <th>机号</th>
                                <th>相关联零件部件1钢号</th>
                                <th>相关联零件部件2钢号</th>
                                <th>相关联零件部件3钢号</th>
                                <th>机器位置</th>
                                <th>处理进度</th>
                                <th>处理时间</th>
                                <th>备注</th>
                                <th width="80px"></th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:repeater id="rpYDCSerList" runat="server">
                               <ItemTemplate>  
                                     <tr>
                                        <td>
                                            <input type="hidden" name="QSClass" value="m" />
                                            <input type="text" name="PartSerNum" value="<%# Eval("PartSerNum") %>" /> 
                                        </td>
                                        <td><input type="text" name="RelevantSteel1" value="<%# Eval("RelevantSteel1") %>" /> </td>
                                        <td><input type="text" name="RelevantSteel2" value="<%# Eval("RelevantSteel2") %>" /> </td>
                                        <td><input type="text" name="RelevantSteel3" value="<%# Eval("RelevantSteel3") %>" /> </td>
                                        <td>
                                            <%# Eval("StorageLocation") %>
                                        </td>
                                        <td> 
                                             <%# Eval("IsProgress") %>
                                        </td>
                                        <td><input type="text" name="ProgressDate" class="date" value="<%# Eval("ProgressDate") %>" /> </td>
                                        <td><input type="text" name="detailRemark" value="<%# Eval("Remark") %>" /> </td>
                                    </tr>
                               </ItemTemplate>
                        </asp:repeater>                          
                        </tbody>
                        <>
                    </table>
                     <h2 style="padding: 0px 2px; width: 100%; display: block; line-height: 18px;">统计</h2>
                        <table class="list" style="width: 100%">
                            <thead>
                                <tr>
                                    <th>存储位置</th>
                                    <th>数量</th>
                                    <th>处理完成数量</th>
                                    <th>最后处理时间</th>
                                </tr>
                            </thead>
                            <asp:repeater id="rpYDCSerTJ" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td><%# Eval("存储位置") %></td>
                                        <td><%# Eval("数量") %></td>
                                        <td><%# Eval("处理完成数量") %></td>
                                        <td><%# Eval("最后处理时间") %></td>
                                    </tr>
                                </ItemTemplate> 
                            </asp:repeater> 
                        </table>
                </div>
            </div>
            <div class="tabsFooter">
                <div class="tabsFooterContent"></div>
            </div>
        </div>
        <div class="formBar">
            <ul>              
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">关闭</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
<script>
    $(document).ready(function () {

        $("#OQualityStrategyAddDuiceReport").change(function () {
            ///alert($(this).val());
            if ($(this).val() == "有") {
                $("#OQualityStrategyAddDuiceReportUpload").show();
            } else {
                $("#OQualityStrategyAddDuiceReportUpload").hide();
            }
        })

        $("select[selectvalue]").each(function () {
            var $selectvalue = $(this).attr("selectvalue");
            $(this).find("option[value='" + $selectvalue + "']").attr("selected", true);
        });
        $("a.downloadhref").each(function () {
            var $href = $(this).attr("href");
            if ($href == "")
                $(this).hide();
        });
    })
</script>
